<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Edit Intraday Share Data</title>
<link href="<c:url value="/resources/css/jquery.datetimepicker.css" />"
	rel="stylesheet" type="text/css"></link>
<link href="<c:url value="/resources/css/common.css" />"
	rel="stylesheet" type="text/css">
<script type="text/javascript"
	src="<c:url value="/resources/js/jquery-1.11.0.min.js" />"></script>
<script type="text/javascript"
	src="<c:url value="/resources/js/jquery.datetimepicker.js" />"></script>
<script type="text/javascript"
	src="<c:url value="/resources/js/bootstrap.js " />"></script>

<link href="<c:url value="/resources/css/bootstrap.min.css " />"
	rel="stylesheet" type="text/css" />
<link href="<c:url value="/resources/css/style.css" />" rel="stylesheet"
	type="text/css" />
<script type="text/javascript">
	$(document).ready(function() {
		$("#datepicker").datetimepicker({
			format : 'Y-m-d H:i'
		});
	});
</script>
</head>
<body>
	<div class="main_wrapper">
		<div class="header_wrapper">
			<div class="container-fluid">
				<div class="header_inner_wrapper clearfix">
					<div class="row-fluid">
						<div class="header_left span4">Edit Intraday Share Data Setup</div>
					</div>
				</div>
				<div class="content_wrapper">
					<div class="container-fluid">
						<div class="row-fluid">
							<div class="input_box_wrapper">
								<div class="input_box_wrapper_text_aery">
									<div class="span6">
										<form:form method="POST" commandName="intradayShareData"
											action="${pageContext.request.contextPath}/intradaysharedata/add/process.html"
											class="form-horizontal">
											<div>${message}</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Company
													:</label>
												<div class="controls">
													<form:select itemValue="id" itemLabel="name"
														path="company.id" items="${companyMap}">
													</form:select>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Date :</label>
												<div class="controls">
													<form:input path="time" id="datepicker" />
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Trade
													Volume :</label>
												<div class="controls">
													<form:input path="tradeVolume" />
												</div>
												<div class="controls">
													<form:errors path="tradeVolume" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Share
													Volume :</label>
												<div class="controls">
													<form:input path="shareVolume" />
												</div>
												<div class="controls">
													<form:errors path="shareVolume" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Turnover
													:</label>
												<div class="controls">
													<form:input path="turnover" />
												</div>
												<div class="controls">
													<form:errors path="turnover" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Last
													Traded Price :</label>
												<div class="controls">
													<form:input path="lastTradedPrice" />
												</div>
												<div class="controls">
													<form:errors path="lastTradedPrice" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Closing
													Price :</label>
												<div class="controls">
													<form:input path="closingPrice" />
												</div>
												<div class="controls">
													<form:errors path="closingPrice" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Value
													Change :</label>
												<div class="controls">
													<form:input path="valueChange" />
												</div>
												<div class="controls">
													<form:errors path="valueChange" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Percentage
													Change :</label>
												<div class="controls">
													<form:input path="percentageChange" />
												</div>
												<div class="controls">
													<form:errors path="percentageChange" cssClass="error"></form:errors>
												</div>
											</div>
											<input type="submit" value="Save"
												class="btn btn-inverse save" />
										</form:form>
										<div class="btn btn-info">
											<a href="${pageContext.request.contextPath}/index.html">Home
												page</a>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>